import config from "@/config";
import http from "@/utils/request";
// 获取页面所有信息
export const getAllData = {
	url:`${config.BASE_URL}/politicenter/getpol`,
	name:'政审中-获取所有信息',
	get: async function() {
		return await http.get(this.url)
	}
}
// 导出数据功能
export const deriveData = {
	url: `${config.BASE_URL}/politicenter/exportexc`,
	name:"政审中-导出功能",
	get: async function()  {
		return await http.get(this.url)
	}
}
// 姓名查找功能
export const searchData = {
	url: `${config.BASE_URL}/politicenter/find`,
	name:"政审中-姓名查找功能",
	post: async function(params="") {
		return await http.post(this.url+params)
	}
}
// 判断政审是否通过
export const judgeRes = {
	url:`${config.BASE_URL}/politicenter/judge`,
	name:'政审中-政审功能',
	post: async function() {
		return await http.post(this.url)
	}
}
// 政审详情对话框
export const judgeDetailDiag = {
	url:`${config.BASE_URL}/Record`,
	name:'政审中-政审详细',
	body:{
		isFramilyCrime: "",
		isFramilyPass: "",
		isGovernmentPass: "",
		isPersonDrug: "",
		isPersonPass: "",
		isPersonRobbery: "",
		poliInfoId:""
	},
	post:async function() {
		return await http.post(this.url,this.body)
	}
}
